<?php /* Smarty version 2.6.26, created on 2014-03-26 16:47:24
         compiled from admin/nav/add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_checkboxes', 'admin/nav/add.html', 20, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/nav.css" />
<script type="text/javascript" src="view/admin/js/ajax.js"></script>
<script type="text/javascript" src="view/admin/js/nav.js"></script>
<title>Insert title here</title>
</head>
<body>
    <h2><a href="?a=nav">返回导航列表</a>商品 -- 添加导航条</h2>
    <form method="post" name="add" action="?a=nav&m=add">
        <input type="hidden" name="sid" value="<?php echo $_GET['sid']; ?>
" />
        <dl class="form">
            <?php if ($this->_tpl_vars['fNav']): ?><dd>主类名称：[<?php echo $this->_tpl_vars['fNav'][0]->name; ?>
]</dd><?php endif; ?>
            <dd>名　　称：<input type="text" name="name" class="text" onblur="ajaxCheckNav();"/> ( * 2~4位)</dd>
            <dd id="warning" class="warning">导航名已被占用!</dd>
            <dd><span class="middle">简　　介：</span><textarea name="info"></textarea> <span class="middle">( *200位以内)</span></dd>
            <?php if ($this->_tpl_vars['fNav']): ?><dd>关联品牌:<?php echo smarty_function_html_checkboxes(array('name' => 'brand','options' => $this->_tpl_vars['allBrand']), $this);?>
</dd><?php endif; ?>
            <dd>价格区间:<?php echo smarty_function_html_checkboxes(array('name' => 'price','options' => $this->_tpl_vars['allPrice']), $this);?>
</dd>
            <dd><input type="submit" name="send" value="新增导航" class="submit" onclick="return checkAddNav();"/></dd>
        </dl>
    </form>
</body>
</html>